pub struct ServerConfig {
    pub port: String,
    pub db_username: String,
    pub db_password: String,
}

pub fn init_server_config() -> ServerConfig {
    let port = std::env::var("PORT").unwrap_or("3010".to_string());
    let db_username = std::env::var("DB_USERNAME").unwrap_or("root".to_string());
    let db_password = std::env::var("DB_PASSWORD").unwrap_or("123".to_string());

    ServerConfig {
        port,
        db_username,
        db_password,
    }
}
